<?php
// var_dump($model);
// var_dump($model['ClassModel']['']);
// var_dump ( $model ['0'] ['course'] );
?>
<div>
	<h2>课堂考勤记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>节数</th>
			<th>课程名称</th>
			<th>任课老师</th>
			<th>类型</th>
			<th>次数（学时数）</th>

		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['ClassModel'] as $m ){ ?>
		<tr data-key="1">
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['time']?></td>
			<td><?=$m['jieshu']?></td>
			<td><?=$m['course']?></td>
			<td><?=$m['teacher']?></td>
			<td><?=$m['type']?></td>
			<td><?=$m['num']?></td>
		</tr>		
	<?php } ?>
	</tbody>
</table>
<hr>

<div>
	<h2>活动考勤记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>时间</th>
			<th>活动</th>
			<th>类型</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['ActivityModel'] as $m ){ ?>
		<tr data-key="1">
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['date']?></td>
			<td><?=$m['time']?></td>
			<td><?=$m['activity']?></td>
			<td><?=$m['type']?></td>
		</tr>		
	<?php } ?>		
	</tbody>
</table>
<hr>

<div>
	<h2>熄灯断网考勤记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>

			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>时间</th>
			<th>宿舍</th>
			<th>宿舍长</th>

		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['XddwModel'] as $m ){ ?>
		<tr data-key="1">
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['date']?></td>
			<td><?=$m['time']?></td>
			<td><?=$m['dorm']?></td>
			<td><?=$m['headofdorm']?></td>
		</tr>		
	<?php } ?>		
	</tbody>
</table>
<hr>

<div>
	<h2>卫生检查记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			
			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>时间</th>
			<th>宿舍</th>
			<th>宿舍长</th>
			<th>等级</th>			
		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['SanitationModel'] as $m ){ ?>
		<tr data-key="1">
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['date']?></td>
			<td><?=$m['time']?></td>
			<td><?=$m['dorm']?></td>
			<td><?=$m['headofdorm']?></td>
			<td><?=$m['rank']?></td>
		</tr>		
	<?php } ?>		
	</tbody>
</table>
<hr>


<div>
	<h2>违纪预警记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>违纪情况</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['BreakruleModel'] as $m ){ ?>
		<tr>
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['date']?></td>
			<td><?=$m['situation']?></td>
			
		</tr>		
	<?php } ?>		
	</tbody>
</table>
<hr>

<div>
	<h2>违纪处分记录</h2>
</div>
<table class="table table-bordered">
	<thead>
		<tr>
			<th>学号</th>
			<th>学年</th>
			<th>学期</th>
			<th>日期</th>
			<th>处分情况</th>
			<th>处分等级</th>
			<th>文件号</th>
		</tr>
	</thead>
	<tbody>
	<?php foreach ($model['PunishmentModel'] as $m ){ ?>
		<tr>
			<td><?=$m['stu_id']?></td>
			<td><?=$m['year']?></td>
			<td><?=$m['semester']?></td>
			<td><?=$m['date']?></td>
			<td><?=$m['situation']?></td>
			<td><?=$m['rank']?></td>
			<td><?=$m['filenum']?></td>
			
		</tr>		
	<?php } ?>		
	</tbody>
</table>
<hr>
